where to execute javascript code